<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>返回所有支持编码的数组</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.mb-language.html">« mb_language</a></li>
      <li style="float: right;"><a href="function.mb-ord.html">mb_ord »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.mbstring.html">多字节字符串 函数</a></li>
    <li>返回所有支持编码的数组</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.mb-list-encodings" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_list_encodings</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mb_list_encodings</span> &mdash; <span class="dc-title">返回所有支持编码的数组</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.mb-list-encodings-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_list_encodings</strong></span>(): <span class="type">array</span></div>

  <p class="para rdfs-comment">
   返回所有支持编码的数组。
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.mb-list-encodings-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.mb-list-encodings-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回一个数字索引数组。
  </p>
 </div>

 
 <div class="refsect1 errors" id="refsect1-function.mb-list-encodings-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   该函数不会触发任何错误。
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.mb-list-encodings-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-2575">
    <p><strong>示例 #1 <span class="function"><strong>mb_list_encodings()</strong></span> 例子</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">mb_list_encodings</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
Array
(
    [0] =&gt; pass
    [1] =&gt; auto
    [2] =&gt; wchar
    [3] =&gt; byte2be
    [4] =&gt; byte2le
    [5] =&gt; byte4be
    [6] =&gt; byte4le
    [7] =&gt; BASE64
    [8] =&gt; UUENCODE
    [9] =&gt; HTML-ENTITIES
    [10] =&gt; Quoted-Printable
    [11] =&gt; 7bit
    [12] =&gt; 8bit
    [13] =&gt; UCS-4
    [14] =&gt; UCS-4BE
    [15] =&gt; UCS-4LE
    [16] =&gt; UCS-2
    [17] =&gt; UCS-2BE
    [18] =&gt; UCS-2LE
    [19] =&gt; UTF-32
    [20] =&gt; UTF-32BE
    [21] =&gt; UTF-32LE
    [22] =&gt; UTF-16
    [23] =&gt; UTF-16BE
    [24] =&gt; UTF-16LE
    [25] =&gt; UTF-8
    [26] =&gt; UTF-7
    [27] =&gt; UTF7-IMAP
    [28] =&gt; ASCII
    [29] =&gt; EUC-JP
    [30] =&gt; SJIS
    [31] =&gt; eucJP-win
    [32] =&gt; SJIS-win
    [33] =&gt; JIS
    [34] =&gt; ISO-2022-JP
    [35] =&gt; Windows-1252
    [36] =&gt; ISO-8859-1
    [37] =&gt; ISO-8859-2
    [38] =&gt; ISO-8859-3
    [39] =&gt; ISO-8859-4
    [40] =&gt; ISO-8859-5
    [41] =&gt; ISO-8859-6
    [42] =&gt; ISO-8859-7
    [43] =&gt; ISO-8859-8
    [44] =&gt; ISO-8859-9
    [45] =&gt; ISO-8859-10
    [46] =&gt; ISO-8859-13
    [47] =&gt; ISO-8859-14
    [48] =&gt; ISO-8859-15
    [49] =&gt; EUC-CN
    [50] =&gt; CP936
    [51] =&gt; HZ
    [52] =&gt; EUC-TW
    [53] =&gt; BIG-5
    [54] =&gt; EUC-KR
    [55] =&gt; UHC
    [56] =&gt; ISO-2022-KR
    [57] =&gt; Windows-1251
    [58] =&gt; CP866
    [59] =&gt; KOI8-R
)
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-list-encodings-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><span class="function"><a href="function.mb-encoding-aliases.html" class="function" rel="rdfs-seeAlso">mb_encoding_aliases()</a> - Get aliases of a known encoding type</span></li>
  </ul>
 </div>

</div></div></div></body></html>